package com.ywjg.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * idInteger(10) NOT NULL good_idInteger(10) NOT NULL good_model_nameInteger(10) NOT NULL
 * this_model_price
 * @author Administrator
 *
 */
@Entity
@Table(name = "good_model")
public class GoodModel {
	@Id
	@GeneratedValue
	Integer id;

	@ManyToOne(cascade=CascadeType.ALL, optional = true)
	@JoinColumn(name = "good_id")
	@JsonIgnore
	AppGood appGood;

	@Column(name = "good_model_name")
	String goodModelName;
	@Column(name = "this_model_price")
	Integer thisModelPrice;
	@Column(name = "this_model_number")
	Integer thisModelNumber;
	public Integer getThisModelNumber() {
		return thisModelNumber;
	}
	public void setThisModelNumber(Integer thisModelNumber) {
		this.thisModelNumber = thisModelNumber;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public AppGood getAppGood() {
		return appGood;
	}
	public void setAppGood(AppGood appGood) {
		this.appGood = appGood;
	}
	public String getGoodModelName() {
		return goodModelName;
	}
	public void setGoodModelName(String goodModelName) {
		this.goodModelName = goodModelName;
	}
	public Integer getThisModelPrice() {
		return thisModelPrice;
	}
	public void setThisModelPrice(Integer thisModelPrice) {
		this.thisModelPrice = thisModelPrice;
	}

}
